import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Scanner;

public class arrayTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数字");
        int x = sc.nextInt();
        System.out.println("请输入第二个数字");
        int y = sc.nextInt();
        System.out.println("请输入第三个数字");
        int z = sc.nextInt();
        int [] array =new int[]{x,y,z};
        Arrays.sort(array);
        System.out.println(Arrays.toString(array));

    }
}
